package org.swan.web.role.service;

import org.swan.web.role.bean.RoleBean;

import java.util.List;
import java.util.Optional;

public interface RoleService {

    Optional<RoleBean> getRoleById(long id);

    long addRole(RoleBean RoleBean);

    RoleBean updateRole(RoleBean RoleBean);

    RoleBean deleteRoleById(long RoleId);

    List<RoleBean> list(int offset, int rows);
}
